package com.xingu.xg.common.enums;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;

@Getter
public enum OperationTypeEnum {

    // 为了方便见名知意，这里不添加 opcode，我理解ToB一般不会有这个困扰
    // 实际生产中可根据是否要暴露给c端来决定是否采用code隐藏具体业务含义
    CHILD("child", "子级"),
    PARENT("parent", "父级"),
    SIBLING_UP("siblingUp", "同级向上"),
    SIBLING_DOWN("siblingDown", "同级向下");

    @JsonProperty
    private final String type;
    private final String desc;

    OperationTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
}
